/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.data;

/**
 *
 * @author Rafael
 */
public class Vehicle extends Skeleton
{
    public static short ACTIVE = 0;
    public static short INACTIVE = 1;
    
    private int driverId;
    private int companyId;
    private String brand = "";
    private String model = "";
    private String plate = "";
    private int modelYear;
    private int manufacturingYear;
    private String color = "";
    private String chassi = "";
    private String renavam = "";
    private double capacity;
    private TruckModel truckModel = TruckModel.NONE;
    private int axles;
    private double maxFuel;
    private double manufacturingAvg;
    private String info = "";
    private short state;

    public short getState()
    {
        return state;
    }

    public void setState( short state )
    {
        this.state = state;
    }
    
    public int getDriverId()
    {
        return driverId;
    }

    public void setDriverId( int driverId )
    {
        this.driverId = driverId;
    }

    public int getCompanyId()
    {
        return companyId;
    }

    public void setCompanyId( int companyId )
    {
        this.companyId = companyId;
    }

    public String getBrand()
    {
        return brand;
    }

    public void setBrand( String brand )
    {
        this.brand = brand;
    }

    public String getModel()
    {
        return model;
    }

    public void setModel( String model )
    {
        this.model = model;
    }

    public String getPlate()
    {
        return plate;
    }

    public void setPlate( String plate )
    {
        this.plate = plate;
    }

    public int getModelYear()
    {
        return modelYear;
    }

    public void setModelYear( int modelYear )
    {
        this.modelYear = modelYear;
    }

    public int getManufacturingYear()
    {
        return manufacturingYear;
    }

    public void setManufacturingYear( int manufacturingYear )
    {
        this.manufacturingYear = manufacturingYear;
    }

    public String getColor()
    {
        return color;
    }

    public void setColor( String color )
    {
        this.color = color;
    }

    public String getChassi()
    {
        return chassi;
    }

    public void setChassi( String chassi )
    {
        this.chassi = chassi;
    }

    public String getRenavam()
    {
        return renavam;
    }

    public void setRenavam( String renavam )
    {
        this.renavam = renavam;
    }

    public double getCapacity()
    {
        return capacity;
    }

    public void setCapacity( double capacity )
    {
        this.capacity = capacity;
    }

    public TruckModel getTruckModel()
    {
        return truckModel;
    }

    public void setTruckModel( TruckModel truckModel )
    {
        this.truckModel = truckModel;
    }

    public int getAxles()
    {
        return axles;
    }

    public void setAxles( int axles )
    {
        this.axles = axles;
    }

    public double getMaxFuel()
    {
        return maxFuel;
    }

    public void setMaxFuel( double maxFuel )
    {
        this.maxFuel = maxFuel;
    }

    public double getManufacturingAvg()
    {
        return manufacturingAvg;
    }

    public void setManufacturingAvg( double manufacturingAvg )
    {
        this.manufacturingAvg = manufacturingAvg;
    }

    public String getInfo()
    {
        return info;
    }

    public void setInfo( String info )
    {
        this.info = info;
    }
    
    @Override
    public String toString()
    {
        return model;
    }

    @Override
    public int hashCode()
    {
        int hash = 3;
        hash = 97 * hash + this.driverId;
        return hash;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Vehicle other = ( Vehicle ) obj;
        if ( this.driverId != other.driverId )
        {
            return false;
        }
        return true;
    }

    
}
